setUserAttribute

fun setUserAttribute(attributeMap: Map<String, Any>)

Deprecated

This class is deprecated since 12.0.00 and will be removed in 14.00.00

Replace with

import com.moengage.core.analytics.MoEAnalyticsHelper
MoEAnalyticsHelper#setUserAttribute

Set the user attributes with the attributes specified in the HashMap

Parameters

attributeMap

The attribute map which needs to be set for the user


fun setUserAttribute(attributeName: String, attributeValue: Any)

Deprecated

This class is deprecated since 12.0.00 and will be removed in 14.00.00

Replace with

import com.moengage.core.analytics.MoEAnalyticsHelper
MoEAnalyticsHelper#setUserAttribute

Track a user attribute in the default instance.

Note: This API only accepts the below data-types:

String, Int, Long, Double, Float, Boolean, Date, GeoLocation, Location

Parameters

attributeName

Attribute Name

attributeValue

Attribute Value